package com.megvii.koala.net.visitor;

import com.megvii.corelib.net.RequestParam;
import com.megvii.corelib.net.request.MegviiRequest;
import com.megvii.koala.constance.SubjectType;
import com.megvii.koala.net.Commands;

/**
 * Created by linyue on 16/1/6.
 */
public class PadAddVisitorRequest implements MegviiRequest
{
    @RequestParam
    public byte[] photo;

    @RequestParam
    public String name;

    @RequestParam
    public int purpose;

    @RequestParam
    public String interviewee;

    @RequestParam
    public int start_time;

    @RequestParam
    public int end_time;

    @RequestParam
    public String come_from;

    @RequestParam
    public int subject_type;

    @RequestParam
    public String phone;

    @RequestParam
    public String description;

    @RequestParam
    public String remark;

    public PadAddVisitorRequest(byte[] photo, String name, int purpose, String interviewee,
            int start_time, int end_time, String come_from, boolean isVip, String phone,
            String description, String remark)
    {
        this.photo = photo;
        this.name = name;
        this.purpose = purpose;
        this.interviewee = interviewee;
        this.start_time = start_time;
        this.end_time = end_time;
        this.come_from = come_from;
        this.subject_type = isVip ? SubjectType.VISITOR_VIP : SubjectType.VISITOR;
        this.phone = phone;
        this.description = description;
        this.remark = remark;
    }

    @Override
    public String getCommand()
    {
        return Commands.PAD_ADD_VISITOR;
    }
}
